CMAKE_MINIMUM_REQUIRED(VERSION 3.0)

include_directories(${COMN_DIR}/include)
include_directories(${PROJECT_ROOT}/MediaCaster)
include_directories(${FFMPEG_DIR}/include)

if (MSVC)
include_directories(${THIRD_PARTY}/stdint)
endif()

link_directories(${PROJECT_ROOT}/lib)
link_directories(${COMN_DIR}/lib)
link_directories(${FFMPEG_DIR}/lib)
link_directories(${FFMPEG_DIR}/bin)

aux_source_directory(. SOURCES)
add_executable(DemoCaster ${SOURCES})

if (MSVC)
	SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SAFESEH:NO")
endif()

target_link_libraries(DemoCaster
	MediaCaster
    avutil avcodec avformat
    )

